<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        #nav{
            background-color: #000;
            border-radius: 5px;
            width: 100%;
        }
        #nav{
            border: 1px solid #999;
            height: 58px;
            padding-top: 6px;
            margin-bottom: 40px;
        }
       #nav td{
           width: 120px;
           /*border: 1px solid #000;*/
       }

        #nav a{
            text-decoration: none;
            color: white;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div id="nav">
        <table>
            <tr>
                <td><img width="52px" src="../../imgs/nav.png"></td>
                <td style="padding-left: 30px"><a href="/cz/userList?pageIndex=1">首页</a></td>
                <td><a href="/cz/user/login2.jsp">登录</a></td>
                <td><a href="#">注册</a></td>

                <c:if test="${user!=null}">
                    <td><a href="#">个人中心</a></td>
                    <td><a href="/cz/user/exit">安全退出</a></td>
                    <td><a href="#">${user.userName}</a></td>
                </c:if>
            </tr>
        </table>
    </div>

</body>
</html>
